Skip to content

Швороб. Task №6 - #1

Open
shvorobsofia wants to merge 22 commits into
mainfrom
task_6
Open

Швороб. Task №6#1
shvorobsofia wants to merge 22 commits into
mainfrom
task_6

Conversation

@shvorobsofia

Copy link
Copy Markdown
Owner

Add a realization of treap.
Were implemented:

  • Class "Treap" and methods for it
  • Tests for those methods
  • CI settings

@shvorobsofia
shvorobsofia requested a review from Krekep November 11, 2024 11:53

@Krekep Krekep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По самому заданию вопросов нет, но надо провести облагораживание кода

Comment thread .github/workflows/ci.yml Outdated
Comment on lines +5 to +10
branches:
- task_6
pull_request:
branches:
- task_6
- main

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше запускать CI не на конкретных ветках, а как в code_style.yml

on:
  # Triggers the workflow on push or pull request events
  [ push, pull_request ]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает настроенного CI для статической проверки типов с помощью mypy

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавила

Comment thread project/treap.py
Comment thread tests/test_basic.py Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_basic стоит удалить и тесты для каждого модуля писать в отдельном файле

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Также добавьте тест, проверяющий работу оператора in

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Разделила тесты по функциональности по разным файлам. Добавила тест для оператора in

@shvorobsofia
shvorobsofia requested a review from Krekep April 5, 2025 14:29

@Krekep Krekep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает typehint в классе Treap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants